<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sample</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>

<body>

<!--main-->
<div class="container sample">
	<div class="panel panel-default">
        <div class="panel-heading">Covert XLSX to CSV</div>
        <div class="panel-body">
            <div>
                <pre>API:http://192.168.33.6:8000/xlsx2csv</pre>
            </div>
            <form method="post" enctype="multipart/form-data" action="/xlsx2csv" class="form-horizontal" role="form">
                <div class="form-group">
                    <div class="col-sm-6 f-body">
                        <label>upload: [required]</label>
						<input name="upload" type="file" class="form-control" value="" />
                    </div>
                </div>
				<div class="form-group">
                    <div class="col-sm-6 f-body">
                        <label>delimiter:</label>
						<input name="delimiter" type="text" placeholder="CSV字段分割符，默认: ," class="form-control" value="" />
                    </div>
                </div>
				<div class="form-group">
                    <div class="col-sm-6 f-body">
                        <label>sheetIndex:</label>
						<input name="sheetIndex" type="text" placeholder="Excel数据表格索引,默认: 0" class="form-control" value="" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-6 f-body">
                        <input type="submit" class="btn btn-primary" value="Submit">
                    </div>
                </div>
                <div class="form-group"><code></code></div>
            </form>
        </div>
    </div>
</div>
<script>
(function(){
    var pre_list = document.getElementsByTagName("pre");
    for(var i in pre_list) {
        var html = pre_list[i].innerHTML + "";
        pre_list[i].innerHTML = html.replace('192.168.33.6:8000', location.host);
    }
})()
</script>
</body>
</html>
